﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using CMSLibrary;

public partial class UControls_WUC_DataSource : PSControls
{
    
    #region 抽象属性
    public override string Client_ClassID
    {
        get { return ddl_DataSource.ClientID; }
    }
    public override ListControl GetClassControl
    {
        get { return ddl_DataSource; }
    }
    #endregion

    #region 抽象方法
    public override void ListControl_DataBind()
    {
        ddl_DataSource.DataSource = new DataEntity.tab_DataSource().SelectDataTable("1=1", null, null).DefaultView;
        ddl_DataSource.DataTextField = "src_Description";//描述
        ddl_DataSource.DataValueField = "src_ID";//自动编号
        ddl_DataSource.DataBind();

        ddl_DataSource.Items.Insert(0, new ListItem("--请选择--", "0"));
    }
    #endregion
}
